package com.jcfk.system.dao;

import com.jcfk.common.business.dao.BaseDao;
import com.jcfk.system.domain.dto.SysPermissionDTO;
import com.jcfk.system.domain.po.RefRolePermissionMapping;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RefRolePermissionMappingDao extends BaseDao<RefRolePermissionMapping> {
    List<SysPermissionDTO> queryPimss(@Param("userId") String userId, @Param("applicationType") String applicationType,@Param("parentId") String parentId);

    List<SysPermissionDTO> queryPimssCode(@Param("userId") String userId, @Param("applicationType") String applicationType);

    List<SysPermissionDTO> filterPermissionList(@Param("userId") String userId, @Param("codes") List<String> codes);

    List<SysPermissionDTO> filterAdminPermissionList(@Param("userId") String userId, @Param("codes") List<String> codes);
}
